
import Tkinter as tk

if __name__ == '__main__':
    import os, sys
    os.chdir("..")
    sys.path.insert(0, os.getcwd())

from externals.pyconfig.pyconfig import PyConfig

from defaultDialog import DefaultDialog

class SetupFieldsDialog(DefaultDialog):       
    def setup_widgets(self):
        tk.Label(self, text="setup existing fields:").pack()
        
        button = tk.Checkbutton(
            self,
#            anchor="w",
            text="A test checkbutton",
            variable=1)#,command=self.idle_set_ivars)
        button.pack()

        

if __name__ == '__main__':
    #test the dialog
    root=tk.Tk()
    tk.Label(root, text="Test Tkinter root").pack()
#    tk.Button(
#        root, text='start Dialog', command=lambda:SetupFieldsDialog(root)
#    ).pack()
    SetupFieldsDialog(root)
#    root.mainloop()